package org.tao.lightningmq.common.constants;

/**
 * @Author lht
 * @date 2025/1/3 - 16:11
 * @description: Broker中的常量
 */
public interface BrokerConstants {
    String MQ_HOME = "LIGHTNING_MQ_HOME";
    String BASE_COMMIT_PATH = "/commitlog/";
    String BASE_CONSUME_QUEUE_PATH = "/consumequeue/";
    String BROKER_PROPERTIES_PATH = "/config/broker.properties";
    String SPLIT = "/";
    Integer DEFAULT_REFRESH_MQ_TOPIC_TIME_STEP = 3;
    Integer DEFAULT_REFRESH_CONSUME_QUEUE_OFFSET_TIME_STEP = 1;
    int CONSUME_QUEUE_EACH_MSG_SIZE = 16;
    short DEFAULT_MAGIC_NUM = 0xfe7;
    Integer COMMIT_LOG_DEFAULT_MMAP_SIZE = 1 * 1024;
//    Integer COMMIT_LOG_DEFAULT_MMAP_SIZE = 1 * 1024 * 1024;
    Integer CONSUME_QUEUE_DEFAULT_MMAP_SIZE = 1 * 1024 * 1024;
}
